treeview: Fix row drag icon offsets
authorTimm Bäder <mail@baedert.org>
Sun, 16 Jul 2017 07:37:17 +0000 (09:37 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:16 +0000 (21:27 -0400)
gtk/gtktreeview.c

index 5ea16185cdef4403ffbbaceb7b4bed0fa42251a2..1ac489b14b1ebf25d17566f925b4937a9a429b92 100644 (file)
@@ -7576,8 +7576,8 @@ gtk_tree_view_drag_begin (GtkWidget      *widget,
                                                 path);
   cairo_surface_set_device_offset (row_pix,
                                    /* the + 1 is for the black border in the icon */
-                                   - (tree_view->priv->press_start_x + 1),
-                                   - (cell_y + 1));
+                                   tree_view->priv->press_start_x + 1,
+                                   1);
 
   gtk_drag_set_icon_surface (context, row_pix);